package com.atguigu.mobileplayer2.base;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by lgs on 2019/3/29.
 */
public class ReplaceFragment extends Fragment {

    private static BasePager currPager;

    public static ReplaceFragment newInstance(BasePager pager) {
        ReplaceFragment fragment = new ReplaceFragment();
        currPager = pager;
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return currPager.rootView;
    }
}
